<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/goodsTest',
    'namespace' => 'Beerus\\Modules\\GoodsTest\\Controllers',
    'middleware' => [
        'web',
        'admin',
    ],
], function (Router $router) {
    //活动审核
    $router->get('/index', 'IndexController@index');
    $router->put('/index/{id}', 'IndexController@indexPost');
    $router->get('/index/{id}/editTime', 'IndexController@editTime');
    $router->post('/index/changeTime', 'IndexController@changeTime');
    $router->post('/index/audit', 'IndexController@audit');
    $router->get('/index/{id}/unPass', 'IndexController@unPass');
    $router->post('/index/unPassPost', 'IndexController@unPassPost');
    $router->get('/index/{id}/editDynamic', 'IndexController@editDynamic');
    $router->post('/index/changeDynamic', 'IndexController@changeDynamic');
    $router->get('/index/{id}/activityData','IndexController@activityData');
    $router->post('/index/activityDataPost','IndexController@activityDataPost');

    //报名列表及筛选、审核用户
    $router->get('/join/{id}/list', 'JoinController@joinList');
    $router->post('/join/choose', 'JoinController@chooseJoin');
    $router->get('/join/exportList', 'JoinController@exportList');//导出测评名单

    $router->get('/reportList/index/{id}', 'ReportListController@index');//获取评测报告
    $router->get('/reportList/index/{id}/{fine_goods_id}/{uid}/editAudit', 'ReportListController@editAudit');//审核页面
    $router->post('/reportList/index/save', 'ReportListController@save');//保存
    $router->post('/reportList/index/cancelSelected', 'ReportListController@cancelSelected');//保存


    //活动详情
    $router->get('/detail/{id}', 'DetailController@index');//活动详情页
    $router->post('/detail/{id}/save', 'DetailController@save');//详情数据保存
    $router->get('/index/createTestActivity', 'DetailController@createTestActivity');//创建测评活动-表单提交页面
    $router->post('/index/addTestActivityPost', 'DetailController@addTestActivityPost');//创建测评活动-保存入库

    $router->get('/joinSelected/index/{id}', 'DetailJoinSelectedController@index');//活动详情-获选名单列表页
    $router->get('/joinSelected/index/{id}/editShip', 'DetailJoinSelectedController@editShip');//填写物流单号和发货信息
    $router->post('/joinSelected/saveShip', 'DetailJoinSelectedController@saveShip');//保存物流单号
    $router->get('/joinSelected/index/{id}/toReplace', 'DetailJoinSelectedController@toReplace');//活动详情-替换用户
    $router->post('/joinSelected/saveReplace', 'DetailJoinSelectedController@saveReplace');//保存替换用户


    $router->get('/detail/report/{id}', 'DetailReportController@index');//活动详情-测评报告
    $router->post('/detail/report/relatedWiki', 'DetailReportController@relatedWiki');//活动详情-测评报告- 关联商品
    $router->get('/wish/list', 'WishMsgController@index');//许愿列表
    $router->get('/wish/list/{id}/edit', 'WishMsgController@edit');//许愿修改
    $router->post('/wish/save', 'WishMsgController@save');//许愿保存

});
